export const widgetSlider =  {
    code: 'widget-slider',
    type: 'html',
    label: '轮播图片',
    icon: 'picture',
    preview: require('./preview/widget-slider.png'),
    options: {
      // 配置
      setup: [
        {
          type: 'a-input-text',
          label: '图层名称',
          name: 'layerName',
          required: true,
          placeholder: '',
          value: '轮播图'
        },
        {
          type: 'a-switch',
          label: '自动切换',
          name: 'autoplay',
          required: false,
          placeholder: '',
          value: true
        },
        {
          type: 'a-switch',
          label: '可跳转',
          name: 'link',
          required: false,
          placeholder: '',
          value: false
        },
        {
          type: 'a-select',
          label: '跳转方式',
          name: 'target',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: '_blank', name: '外部'},
            {code: '_self', name: '原页面'}
          ],
          value: '_blank'
        },
        {
          type: 'a-switch',
          label: '指示点显示',
          name: 'dots',
          required: false,
          placeholder: '',
          value: true
        },
        {
          type: 'a-select',
          label: '指示点位置',
          name: 'dotPosition',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'top', name: '顶部'},
            {code: 'left', name: '左侧'},
            {code: 'right', name: '右侧'},
            {code: 'bottom', name: '底部'},
          ],
          value: 'bottom'
        },
      ],
      // 数据
      data: [
        {
          type: 'a-radio-group',
          label: '数据类型',
          name: 'dataType',
          require: false,
          placeholder: '',
          selectValue: true,
          selectOptions: [
            {
              code: 'staticData',
              name: '静态数据',
            },
            {
              code: 'dynamicData',
              name: '动态数据',
            },
          ],
          value: 'staticData',
        },
        {
          type: 'a-input-number',
          label: '刷新时间',
          name: 'refreshTime',
          relactiveDom: 'dataType',
          relactiveDomValue: 'dynamicData',
          value: 30000
        },
        {
          type: 'a-button',
          label: '静态数据',
          name: 'staticData',
          required: false,
          placeholder: '',
          relactiveDom: 'dataType',
          relactiveDomValue: 'staticData',
          value: [
            {url: '', pic: 'https://platform-kcyf-os.oss-cn-beijing.aliyuncs.com/temp/Snipaste_2022-06-08_08-37-26_1654648659305.png', title: '标题1'},
            {url: '', pic: 'https://platform-kcyf-pds.oss-cn-beijing.aliyuncs.com/53bg.png', title: '标题2'},
            {url: '', pic: 'https://platform-kcyf-pds.oss-cn-beijing.aliyuncs.com/904756e5-04cd-497a-b664-ba61d54c802a.jpg', title: '标题3'}
          ],
        },
        {
          type: 'dycustComponents',
          label: '',
          name: 'dynamicData',
          required: false,
          placeholder: '',
          relactiveDom: 'dataType',
          relactiveDomValue: 'dynamicData',
          chartType: 'widget-table',
          dictKey: 'TEXT_PROPERTIES', //表格的暂不起作用
          value: '',
        },
      ],
      // 坐标
      position: [
        {
          type: 'a-input-number',
          label: '横坐标',
          name: 'left',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '纵坐标',
          name: 'top',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '深度',
          name: 'zIndex',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '宽度',
          name: 'width',
          required: false,
          placeholder: '该容器在1920px大屏中的宽度',
          value: 600,
        },
        {
          type: 'a-input-number',
          label: '高度',
          name: 'height',
          required: false,
          placeholder: '该容器在1080px大屏中的高度',
          value: 300
        },
      ],
    }
  }